package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.device.csun.gateway.entity.CsunGatewayData;
import com.csun.cmny.provider.model.domain.DmcGatewayData;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DmcGatewayDataMapper extends Mapper<DmcGatewayData> {

    /**
     * select by device id
     *
     * @param deviceId  the device id
     *
     * @return  the dmc gateway data
     */
    DmcGatewayData selectByDeviceId(Long deviceId);

    /**
     * 查询智能网关数据列表
     *
     * @return
     */
    List<CsunGatewayData> queryGateWayDataList();

    /**
     * save or update dmc gateway data
     *
     * @param dmcGatewayData the dmc gateway data
     *
     * @return the int.
     */
    Integer saveOrUpdate(DmcGatewayData dmcGatewayData);

    DmcGatewayData selectDeviceDataByDeviceId(Long deviceId);
}